package org.example.test.service;

import org.example.test.dal.entity.OrderItem;
import org.example.test.dal.entity.Orders;
import org.example.test.model.OrderItemModel;
import org.example.test.model.OrdersModel;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface OrdersService {

    OrdersModel createOrder(OrdersModel orderRequest);
    void updateOrder(Long orderId, OrdersModel orderRequest);
    void updateOrderStatus(Long orderId,String status);
    void deleteOrder(Long orderId);
    OrdersModel getOrderById(Long orderId);
    List<OrdersModel> listOrdersByUser(Long userId);
    OrdersModel checkoutCart(Long userId, List<Long> selectedProductIds,Double totalPrice);
    List<OrderItemModel> getMerchantOrder(Long productId);

}
